#include "BaseTimer.h"

using namespace cm_base;

class TestBaseTimerListener: public BaseTimerListener
{
    void onTimer(TimerNotification* p_tn )
    {
        std::cout<<"\n TimeOut";
        p_tn->release();
    }

};

int main()
{
    BaseTimer bt;
    bt.setup();

    TestBaseTimerListener ttl;

    TimerNotification* tm = new TimerNotification;
    tm->registerListener( &ttl );
    tm->setInterval(5000);

    bt.start(tm);


    while(1);
    return 0;
}